{
"color": [
"#92CC77",
"#FFE298",
"#546FC6",
"#EE6D6D"
],
"tooltip": {
"trigger": "item",
"formatter": "{b} <br/>{c} ({d}%)"
},
"series": [
{
"type": "pie",
"radius": [
"40%",
"70%"
],
"labelLine": {
"length": 20,
"length2": 80
},
"label": {
"formatter": params => {
const percent = params.percent || 0
const unit = "元"
return "{name|" + params.name + "}\n" + "{value|" + params.data.realValue + unit + "} {per|" + percent + "%}"
},
"backgroundColor": "#F6F8FC",
"borderColor": "#8C8D8E",
"borderWidth": 1,
"borderRadius": 4,
"padding": 2,
"lineHeight": 15,
"rich": {
"name": {
"color": "#6E7079",
"fontSize": 12,
"fontWeight": "bold"
},
"value": {
"color": "#6E7079",
"fontSize": 10
},
"per": {
"color": "#fff",
"backgroundColor": "#4C5058",
"padding": 2,
"fontSize": 10,
"borderRadius": 4
}
}
},
"data": [
{
"name": "越限-受迫交易",
"value": 0,
"proportion": "0.00",
"realValue": 0
},
{
"name": "少出清-受迫交易",
"value": 0,
"proportion": "0.00",
"realValue": 0
},
{
"name": "计划交易",
"value": 1608.02,
"proportion": "98.83",
"realValue": 1608.02
},
{
"name": "多出清-受迫交易",
"value": 19.05,
"proportion": "1.17",
"realValue": 19.05
}
]
}
]
}